package com.xc.erp.modules.erp.controller;

import com.xc.erp.common.annotation.Log;
import com.xc.erp.modules.erp.service.JshSequenceService;
import com.xc.erp.modules.erp.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sequence")
public class SequenceController {
    @Autowired
    private JshSequenceService jshSequenceService;
    @GetMapping("/buildNumber")
    public AjaxResult getDefaultNumber(String type,String subType) {
        return AjaxResult.success().put("defaultNumber", jshSequenceService.getBuildOnlyNumber(type,subType));
    }
} 